package com.behavior.IteratorPattern.lang;

/**
 * @author xiaobing
 * @version 1.0
 * @date 2021/9/28 3:17 下午
 */
public interface Collection<E,L> extends Iterable<E>{

    boolean add(E e);

    boolean remove(E e);

    boolean addLink(String key, L l);

    boolean removeLink(String key);

    Iterator<E> iterator();
}
